Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pull-request fetch for private user profiles #71

Merged

Conversation

gentlementlegen
Copy link
Member

@gentlementlegen gentlementlegen commented Oct 29, 2024

Resolves #70
QA: Meniole#41 (comment) (@ubiquity-ubiquibot has its information private)

Copy link
Contributor

github-actions bot commented Oct 29, 2024

Unused exports (1)

Filename exports
src/utils/issue.ts getAllPullRequestsWithRetry

Add @octokit/types to package.json and refactor issue utils.
Change debug to info log level and streamline retry mechanism.
@gentlementlegen
Copy link
Member Author

@0x4007 On the good news: it works, I successfully retrieve the items! However on the less good news, there are other places where GitHub search is used and they subsequently break as well. I will have to provide a fix for all of them which broadens the scope on this task, on it.

Refactor code to use fallback methods for better error handling.
Refactored to use `octokit.rest` namespace for paginate methods.
Introduce mock context and data to validate pull request retrieval.
@gentlementlegen gentlementlegen marked this pull request as ready for review October 29, 2024 17:24
@gentlementlegen gentlementlegen merged commit b960b84 into ubiquity-os-marketplace:development Oct 30, 2024
2 checks passed
@gentlementlegen gentlementlegen deleted the fix/gql branch October 30, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change search queries to GraphQl to avoid permission issues
2 participants